import { defHttp } from '@/utils/http/axios'

enum API {
  List = '/roomUseRecords/list',
}

interface RoomRecordQuery {
  roomName: string,
  roomType: string,
  startTime: string,
  endTime: string
}

const DEFAULT_OPTS = {
  isTransformResponse: false
}

/** 获取房间使用记录 */
export function getRoomUseRecords(data: Partial<RoomRecordQuery>) {
  return defHttp.get({ 
    url: API.List,
    params: data
  }, DEFAULT_OPTS)
}

